<%@page import="com.yymmarket.forum.bbs.*,com.yymmarket.forum.user.UserBean,com.yymmarket.forum.user.UserService,com.yymmarket.forum.util.*,com.yymmarket.forum.bbs.ContentBean,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="application/vnd.wap.xhtml+xml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
ContentAction webAction = new ContentAction(request,response);
int id = webAction.getParameterInt("id");
BBSService bbs = BBSService.getInstance();
int p = webAction.getParameterInt("p");
boolean flag = webAction.post();
%><html xmlns="http://www.w3.org/1999/xhtml">
<head><%if(flag) {%><title>发帖成功</title><%} else {%>
<title>发表新帖子</title>
<%} %></head><%
if(flag) {
%><body title="帖子发布成功">
<p>发表帖子成功<br/>
<a href="content.jsp?id=<%=request.getAttribute("contentId") %>&amp;fid=<%=id %>">&lt;返回帖子</a><br/>
<a href="forum.jsp?id=<%=id %>">&lt;&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
</p>
</body>
<%}else { 
%><body title="发表新帖子">
<p><%= BaseUtil.top(request,response) %><%=webAction.getAttributeEnter("msg")%>
发表帖子于[<%=bbs.getBBSBeanById(id).getTitle() %>]<br/>
<form action="postX.jsp?id=<%=id%>" method="post">
标题:<input type="text" name="title"/><br/>
内容:<textarea name="content" rows="6" cols="40"></textarea><br/>
<input type="submit" value="确定"><br/>
</form>
<a href="forum.jsp?id=<%=id %>&amp;p=<%=p %>">&lt;&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</body>
<%} %></html>